package com.jctrip.hotel.source.model.greentree.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * @Author：Haruhi
 * @description:
 * @Date：2023/8/30 23:50
 * @Package：com.jctrip.hotel.source.model.greentree.req
 * @Project：hotel-main
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JacksonXmlRootElement(localName = "CancelBooking")
public class CancelBookingReq extends GreenTreeBaseReq {

    @JacksonXmlProperty(localName = "hotelCode",isAttribute = true)
    private String hotelCode;

    @JacksonXmlProperty(localName = "UniqueID")
    private String uniqueID;

    @JacksonXmlProperty(localName = "CancelTerm")
    private CancelTerm cancelTerm;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class CancelTerm {
        @JacksonXmlProperty(localName = "cancelType",isAttribute = true)
        private String cancelType;

        @JacksonXmlProperty(localName = "CancelText")
        private String cancelText;
    }
}
